import outetts

enum = outetts.Models("unsloth/Llama-OuteTTS-1.0-1B".split("/", 1)[1])  # VERSION_1_0_SIZE_1B
cfg = outetts.ModelConfig.auto_config(enum, outetts.Backend.HF)
tts = outetts.Interface(cfg)

speaker = tts.load_default_speaker("EN-FEMALE-1-NEUTRAL")
tts.generate(
    outetts.GenerationConfig(
        text="你好啊，我的朋友?",
        speaker=speaker,
    )
).save("output.wav")
